Copyright ã1995 by NeXT Computer, Inc.  All Rights Reserved.

DBTextFormatter

Inherits From:	DBFormatter : Object

Declared In:	dbkit/DBTextFormatter.h

Class Description

DBTextFormatter is one of three subclasses of DBFormatter; the others are DBEditableFormatter and DBImageFormatter.  For read-only character-based display of numeric or character information, DBTextFormatter is faster than DBEditableTextFormatter.  See the description of the superclass, DBFormatter.

Instance Variables

id font;

BOOL batching;

font	The current font for displaying text

batching	YES if the same formats apply to a batch of records

Method Types

Initializing	- init
- free

Manipulating font	- font
- setFont:

Batching format requests	- beginBatching:
- resetBatching:
- endBatching

Archiving	- write:
- read:

Instance Methods

beginBatching:

- beginBatching:(id <DBTableVectors>)attrs

Notifies the DBTextFormatter that a formatting session is about to begin.  You never invoke this method directly; it's invoked by the DBTableView that's using this object as a formatter.  The end of a formatting session is signalled by endBatching. 

See also:  - endBatching, - resetBatching:

endBatching

- endBatching

Notifies the DBTextFormatter that a formatting session is over.  You never invoke this method directly; it's invoked by the DBTableView that's using this object as a formatter.  The beginning of a formatting session is signalled by beginBatching:. 

See also:   - beginBatching:, - resetBatching:

font

- font

Returns the DBTextFormatter's Font object.

free

- free

Frees the DBTextFormatter instance.

init

- init

Initializes the DBTextFormatter instance.  In the course of initializing, the display font is set to the system default font at 12 point and batching is turned off.  Returns self.

read:

- read:(NXTypedStream *)stream

Reads the DBTextFormatter from stream. Returns self. 

resetBatching:

- resetBatching:(id <DBTableVectors>) attrs

Same as beginBatching:, but has no effect if batching is already in effect.  Returns self.

setFont:

- setFont:aFont

Sets the current font to the Font object aFont.  Returns self.

write:

- write:(NXTypedStream *)stream

Archives the DBTextFormatter to stream.   Returns self.